Date Name Downloads
May 13, 2012 SSJSEXT_1.0.0.201205131007 312
May 12, 2012 SSJSEXT_1.0.0.201205120938 101
May 3, 2012 SSJS Extension 133
SSJSEXT_1.0.0.201205131007
SSJSEXT_1.0.0.201205131007
May 13, 2012
Apache License
312

Added new function @GetNextBusinessDayExt()

Syntax

@GetNextBusinessDayExt( [offset] ; [baseDate] ; [excludedDaysOfWeek] ; [excludedDates] )

Parameters

offset:
Number of non-excluded days from the baseDate that the result date will be

basedate:
Date to start counting offset from. If specify "null" defaults to today

excludedDaysOfWeek:
Numer or number list. Optional. Days of the week not counted as business days, where 1 is Sunday and 7 is Saturday.
DEFAULT: 1,7 ( Sunday, Saturday )

excludedDates:
String of date strings (formatted as SimpleDateFormat.getDateInstance().format()) which represent specific dates which should be excluded from the counting of days, such as holidays

Return value:
The earliest date which is offset days after the baseDate. In  counting towards this result date, any excludedDaysOfWeek and any excludedDates are excluded from counting towards the offset